package com.example.service;

import com.example.repo.PersonPage;
import com.example.vo.Person;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;


@Service
public class PageService {


    @Resource
    public PersonPage personPage;

    @Transactional
    public Iterable<Person> findAll(Pageable pageable){
        return personPage.findAll(pageable);
    }
}
